How to read key from web config in JavaScript

119

How to read key from web config in JavaScript -

<script>
    var apiUrl = '@System.Configuration.ConfigurationManager.AppSettings["url"]';
</script>

Comments

Submit
0 Comments